﻿using System.Collections.Generic;

namespace System.Linq
{
    public static class IEnumerableExtensions
    {
        public static void Foreach<T>(this IEnumerable<T> source, Action<T> action) where T : class
        {
            foreach (T item in source)
            {
                action(item);
            }
        }
    }
}
